

PROJECT_ROOT = $(shell pwd)

ifeq ($(BUILD),)
BUILD_DIR = $(PROJECT_ROOT)/build
else
BUILD_DIR := $(PROJECT_ROOT)/$(BUILD)
endif

ifeq ($(INSTALL),)
INSTALL_DIR = $(BUILD_DIR)/install
else
INSTALL_DIR = $(INSTALL)
endif

BUILD_OJB_DIR   = $(BUILD_DIR)/obj
INSTALL_LIB_DIR	= $(INSTALL_DIR)/lib
INSTALL_INC_DIR	= $(INSTALL_DIR)/include

INCLUDE_DIR   = $(PROJECT_ROOT)/include

ARCH_CPPFLAGS = 

export PROJECT_ROOT 
export BUILD_DIR BUILD_OJB_DIR INCLUDE_DIR 
export INSTALL_LIB_DIR INSTALL_INC_DIR ARCH_CPPFLAGS